const Message = require("../model/homeMessage.model");

class MessageService {
  async update(obj) {
    console.log(obj,'obj');
    
    return await Message.update(obj,{where:{}});
  }
  async getMessage() {
    const { rows, count } = await Message.findAndCountAll();

    return rows[0]
  }
}
module.exports = new MessageService();
